from fastapi import FastAPI
from pydantic import BaseModel
from transforms import Transform
# pip install fastapi uvicorn
app = FastAPI()
transform = Transform()

class PostVertorData(BaseModel):
    content: str

@app.post("/vectors")
async def process_vectors(data: PostVertorData):
    return {
        "result": transform.transform(data.content)
    }